//
//  FZHomeUser.swift
//  FZSina_Swift
//
//  Created by 李忠 on 7/24/16.
//  Copyright © 2016 FZLZ. All rights reserved.
//

import UIKit

class FZHomeUser: NSObject {
    ///用户UID
    var id: Int64 = 0
    ///用户名字
    var screen_name: String?
    /// 友好显示名称
    var name: String?
    //用户个人描述
    var descriptionInfo: String?
    //性别m？男，f：女，n：未知
    var gender: String?
    //粉丝数
    var followers_count: Int = 0
    //关注数
    var friends_count: Int = 0
    //微博数
    var statuses_count: Int = 0
    //收藏数
    var favourites_count: Int = 0
    //用户的互粉数
    var bi_followers_count: Int = 0
    
    /// 会员等级 1-6
    var mbrank: Int = 0
    /// 认证类型 -1：没有认证，0，认证用户，2,3,5: 企业认证，220: 达人
    var verified_type: Int = 0
    //是否被认证
    var verified: Bool = false
    
    ///用户创建时间
    var created_at: String?
    ///用户头像地址（中图），50×50像素
    var profile_image_url: String?
    var avatar_large: String?
    
    ///用户的微博统一URL地址
    var profile_url: String?
    
    init(dic: [String: AnyObject]) {
        super.init()
        setValuesForKeysWithDictionary(dic)
    }
    
    override func setValue(value: AnyObject?, forKey key: String) {
        if key == "description" {
            
            descriptionInfo = value as? String
            
        }else{
            super.setValue(value, forKey: key)
        }
    }
    
    
    override func setValue(value: AnyObject?, forUndefinedKey key: String) {
        
    }
    
    
    
    
    
    
}
